package com.ydlclass;

/**
 * 定一常量
 * @Author duWenJian
 * @Date 2024/2/12 13:53
 * @Version 1.0
 */
public class Constant {
    /**
     * DEFAULT_ZK_CONNECT 默认zookeeper连接地址
     * TIME_OUT 默认的超时时间
     * BASE_PATH zookeeper的根节点
     * BASE_PROVIDERS_PATH 服务提供者的节点
     * BASE_CONSUMERS_PATH 服务消费者的节点
     * TYPE_HOST_LENGTH 服务提供者和消费者节点的长度
     * REGISTRY_TYPE_ZOOKEEPER 服务注册中心类型为zookeeper
     * REGISTRY_TYPE_NACOS 服务注册中心类型为nacos
     */
    public static final String DEFAULT_ZK_CONNECT = "127.0.0.1:2181";
    public static final int TIME_OUT = 10000;
    public static final String BASE_PATH = "/yrpc-metadata";
    public static final String BASE_PROVIDERS_PATH = BASE_PATH + "/providers";
    public static final String BASE_CONSUMERS_PATH = BASE_PATH + "/consumers";
    public static final int TYPE_HOST_LENGTH = 2;
    public static final String REGISTRY_TYPE_ZOOKEEPER = "zookeeper";
    public static final String REGISTRY_TYPE_NACOS = "nacos";
}
